<style>
    .layui-form-select{
        width: 192px;
    }
</style>
<div class="layui-form" lay-filter="layui-warehouse-edit-form-list" id="layui-warehouse-edit-form-list"style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">仓库名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="warehouse_name" value="{{ d.params.warehouse_name || '' }}" lay-verify="required" placeholder="请输入仓库名称" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">仓库类型</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <select name="type"  lay-filter="warehouse_type" lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1" {{ d.params.type == 1 ? 'selected' : '' }} >店仓</option>
                    <option value="2" {{ d.params.type == 2 ? 'selected' : '' }} >国家仓</option>
                </select>
            </script>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="margin-right: -15px" id="shop_html">所属店铺</label>
        </div>
        <div class="layui-inline">
            <select name="shop_name" class="selector" lay-verify="required" lay-search>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">仓库地址</label>
        <div class="layui-input-inline">
            <script type="text/html" template>
                <input type="text" name="address" value="{{ d.params.address || '' }}" lay-verify="required" placeholder="请输入仓库地址" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>

    <script type="text/html" template>
        <input type="hidden" name="id" value="{{ d.params.id || '' }}">
    </script>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['laydate'], function () {
        var laydate = layui.laydate;
        laydate.render({
            elem: '#test-laydate-range-month'
            ,type: 'month'
            ,range: true
        });
    });
</script>
